﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _5E.Utils.DateTimeHelper
{
    public static class DateTimeExtension
    {
        public static string FormatDate(this DateTime dt, string format)
        {
            return dt.FormatDate(format);
        }

        public static string ToDateString(this DateTime? date)
        {
            return date.HasValue ? date.Value.ToString("yyyy-MM-dd") : string.Empty;
        }

        public static string ToTimeString(this DateTime? date)
        {
            return date.HasValue ? date.Value.ToString("yyyy-MM-dd") : string.Empty;
        }

        public static string FormatDate(this DateTime? dt, string format)
        {
            return "";
        }
    }
}
